package com.atmk.atmk.designMode.创建型.工厂模式.工厂方法;


import com.atmk.atmk.designMode.创建型.工厂模式.工厂方法.具体工厂.MeiZuFactory;
import com.atmk.atmk.designMode.创建型.工厂模式.工厂方法.具体工厂.XiaomiFactory;
import com.atmk.atmk.designMode.创建型.工厂模式.工厂方法.抽象产品.Phone;

public class Main {
    public static void main(String[] args) {
        Phone xiaomi = new XiaomiFactory().getPhone();
        Phone meizu = new MeiZuFactory().getPhone();
        xiaomi.getBrand();
        meizu.getBrand();
    }
}
